<?php
use think\facade\Route;

//注册路由
Route::post('register','api/admin/user/register');
//登录
Route::post('login','api/admin/User/login');
//验证码
Route::post('code','api/admin/User/SendCode');
//个人信息列表
Route::get('List','api/admin/User/List');
//上传个人信息本地照片
Route::post('Upload','api/admin/Upload/Upload');
//上传个人信息七牛云照片
Route::post('Qiniu','api/admin/Upload/Qiniu');
//修改人信息
Route::post('edit','api/admin/User/UserEdit');
//导航查询
Route::get('nav','api/admin/Nav/index');
//版纳图查询
Route::get('banner','api/admin/Banner/index');
//充值余额
Route::post('money','api/admin/Money/money')->middleware(\api\admin\middleware\CheckToken::class);
//收货信息
//查询收货地址列表
Route::group('address',function (){
    Route::get('list', 'admin/Delivery/getList');
    //添加收货地址
    Route::post('add', 'admin/Delivery/add');
    //修改收货地址
    Route::post('edit', 'admin/Delivery/edit');
    //删除收货地址
    Route::post('delete', 'admin/Delivery/delete');
})->middleware(\api\admin\middleware\CheckToken::class);
//商品
Route::group('order',function (){
    //商品支付购买
    Route::post('order','api/admin/Order/order');
    //商品支付信息
    Route::post('pay','api/admin/Pay/walletPay');
    //获取商品信息
    Route::get('list','api/admin/Order/getGoodsList');
    //获取商品详情
    Route::get('info','api/admin/Order/info');
})->middleware(\api\admin\middleware\CheckToken::class);
//物流
Route::group('wuliu',function (){
    //物流查询
    Route::post('wuliu','api/admin/wuliu/wuliu');

})->middleware(\api\admin\middleware\CheckToken::class);

